import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { UserProfileComponent } from "../blog/user/user-profile/user-profile.component";
import { pathToFileURL } from "url";
import { ManageMainComponent } from "./manage-main/manage-main.component";
import { AuthGuard } from '../shared/auth-guard';

const routes: Routes = [
  {
    path: "",
    component: ManageMainComponent,
    canActivate: [AuthGuard],
    children: [
      {
        path: "profile",
        component: UserProfileComponent
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ManageRoutingModule {}
